| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

EntityRenderInfo.h
1 // EntityRenderInfo.h
3 //
5
6 namespace nkGraphics
7 {
35 class EntityRenderInfo final : public nkExport::Exportable
36 {
37 public :
38
39 // Constructor, destructor
43 EntityRenderInfo () noexcept ;
49 EntityRenderInfo (const EntityRenderInfo& other) noexcept ;
55 EntityRenderInfo (EntityRenderInfo&& other) noexcept ;
64 EntityRenderInfo (Mesh* mesh, Shader* shader) noexcept ;
68 virtual ~EntityRenderInfo () ;
69
70 // Getters
75 EntityRenderInfoSlot* getSlot (unsigned int index) const ;
79 const nkMemory::BufferCast<EntityRenderInfoSlot*>& getSlots () const ;
83 Entity* getParentEntity () const ;
84
85 // Manipulations
92 EntityRenderInfoSlot* addSlot (const EntityRenderInfoSlot& infoSlot = EntityRenderInfoSlot()) ;
98 void eraseSlot (unsigned int index) ;
99
100 // Operators
106 EntityRenderInfo& operator= (const EntityRenderInfo& other) noexcept ;
112 EntityRenderInfo& operator= (EntityRenderInfo&& other) noexcept ;
113
114 // Import / Export
115 virtual void exportClassToTree (nkExport::Node* rootNode) override ;
116 virtual void importClassFromTree (nkExport::Node* rootNode) override ;
117 } ;
118 }
nkGraphics::EntityRenderInfo::eraseSlot
void eraseSlot(unsigned int index)
nkGraphics::EntityRenderInfo::getSlot
EntityRenderInfoSlot * getSlot(unsigned int index) const
nkExport::Exportable
An interface to define objects that can be exported using this component.
Definition: Exportable.h:15
nkGraphics::EntityRenderInfo
Compiles the render information for an Entity to use within a RenderQueue.
Definition: EntityRenderInfo.h:36
nkGraphics::EntityRenderInfo::importClassFromTree
virtual void importClassFromTree(nkExport::Node *rootNode) override
nkGraphics::EntityRenderInfo::getParentEntity
Entity * getParentEntity() const
nkExport
Encompasses all API of component NilkinsExport.
Definition: Base64Encoder.h:7
nkGraphics::Shader
A shader class, feeding data to a Program.
Definition: Shader.h:16
nkGraphics::EntityRenderInfo::getSlots
const nkMemory::BufferCast< EntityRenderInfoSlot * > & getSlots() const
nkGraphics::Entity
An entity in a render queue. It drives the shader and possible graph position for a set of renderable...
Definition: Entity.h:15
nkGraphics::EntityRenderInfo::EntityRenderInfo
EntityRenderInfo() noexcept
nkGraphics::EntityRenderInfoSlot
A slot within the render information.
Definition: EntityRenderInfoSlot.h:14
nkGraphics::Node
Represents a node in a scene graph.
Definition: Node.h:16
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::Mesh
Holds information about a mesh. Used as a basis to render 3d models.
Definition: Mesh.h:14
nkGraphics::EntityRenderInfo::exportClassToTree
virtual void exportClassToTree(nkExport::Node *rootNode) override
nkGraphics::EntityRenderInfo::addSlot
EntityRenderInfoSlot * addSlot(const EntityRenderInfoSlot &infoSlot=EntityRenderInfoSlot())
nkMemory
Encompasses all API of component NilkinsMemory.
Definition: Allocator.h:7